<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录界面</title>
</head>
<body>
    <div>
        {% comment %} method定义了提交表单时的http方式；action指定了接收表单数据的url {% endcomment %}
        <form method="post" action="/login/">
            {% csrf_token %}
            <input type="text" name="user" placeholder="用户名"><br>
            <input type="password" name="password" placeholder="密码"><br>
            <input type="submit" value="提交"> 
            <span style="color:red">{{err_msg}}</span>
        </form>
        

    </div>
    
</body>
</html>